package com.briup.corejava.day08.pojo;

/**
 * 父类：员工类
 */
public class Employee {
    private String id;
    private String name;
    // 快速提供空参、全参构造器，getter / setter

    public Employee() {
    }

    public Employee(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    // 逻辑
     public void doWork(){
        System.out.println("员工开始工作");
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                '}';
    }

    // 一个java的普通类的基本成员
    // 全参空参构造器、getter setter toString
}
